

# name=input("who are you?\n")
#
# print("Welcome",name)
#
# my_int=input("Input a number:")
#
# print(type(my_int))

# 计算苹果价格
# weight=float(input("weight of apple:"))
# price=float(input("Price of apple:"))
#
# cost=weight*price
# print(cost)

# 控制小数点的位数
weight =float(input("weight of apple:"))
price=float(input("Price of apple:"))
cost =weight*price
print(cost)
print('%.3f'%cost)
print('%.2f'%cost)
print('%.1f'%cost)
print('%.0f'%cost)